]> dgit.raspbian.org Git - gnome-shell.git/commit
dateMenu: Move weather forecast validity check
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 22 Nov 2019 22:27:47 +0000 (23:27 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Nov 2019 00:13:08 +0000 (01:13 +0100)
commite72c38b5abd8b2abb07c0b63de561ce67f79f6b5
treeeb7e3eb285636fbb8e1eae352335f5a9ced5c67a
parentf6f373b0c222ddd76ffa02c1c60f97b7468c4153
dateMenu: Move weather forecast validity check

Commit b779f6f728 added a check to filter out invalid weather forecasts.

However the check is currently done when creating UI for the forecasts,
which means we end up with fewer forecasts than we could display if any
forecasts are invalid.

We can avoid that issue by checking the validity while collecting the
forecasts, so do that instead.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1927
js/ui/dateMenu.js